# -*- coding: utf-8 -*-
import httpx


client  = httpx.Client(base_url = "http://127.0.0.1:80/")
request = client.post("/login",
    json = {
        "email":    "valid@email.ru",
        "password": "PAssw0rd"
    })


print(request)         # <Response [200 OK]>
print(request.content) # b'{"id":1}'
print(request.cookies) # <Cookies[<Cookie id=2 for 127.0.0.1 />]>
